x86: softtsc for PV domains
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 27 Aug 2009 10:25:34 +0000 (11:25 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 27 Aug 2009 10:25:34 +0000 (11:25 +0100)
commitd4fc7ea04de2d81f78a03ff7ae0fb5ee27dd6d49
treed0d6b1d69d3a41e094639016f55b9bb03b6b6f42
parentfbed278604f69ea801dcea2d05df9ace1156a55d
x86: softtsc for PV domains

Implement softtsc (TSC emulation) for userland code in PV domains.  It
currently is tied to the existing "softtsc" Xen boot option (which
does the same thing but for HVM domains).  Later it should be tied to
a vm.cfg option, but this is sufficient for now to obtain performance
degradation data for PV environments that heavily utilize rdtsc.  To
record emulation frequency, use debug-key "s".

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/domain.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/time.c
xen/arch/x86/traps.c
xen/include/asm-x86/domain.h
xen/include/asm-x86/hvm/support.h
xen/include/asm-x86/time.h